package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_vehicle_bone_lv_up", autoSave = true, desc = "珍兽魂力修炼", uploadCk = true)
public class LogVehicleBoneLvUp extends ServerBaseLog {
    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "珍兽唯一id")
    private String vehicleUid;
    @FieldTypeAnnotation(desc = "珍兽配置id")
    private int vehicleId;
    @FieldTypeAnnotation(desc = "升级后等级")
    private int lv;
    @FieldTypeAnnotation(desc = "消耗的道具")
    private String costItem;
    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogVehicleBoneLvUp(long userId, String vehicleUid, int vehicleId, int lv, String costItem) {
        this.userId = userId;
        this.vehicleUid = vehicleUid;
        this.vehicleId = vehicleId;
        this.lv = lv;
        this.costItem = costItem;
        this.logTime = new Date();
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
